package com.koala.learn.anno;

import cn.hutool.core.collection.CollectionUtil;
import org.apache.commons.compress.utils.Lists;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author yantingrui
 * @date 2022/2/15   15:41
 */
public class Start1 {

    public static void main(String[] args) {
        ArrayList<Person> lists = Lists.newArrayList();
        //lists.add(new Person(""))
        List<String> collect = lists.stream().map(Person::getPhone).collect(Collectors.toList());
        System.out.println(collect);
        System.out.println(CollectionUtil.isEmpty(collect));

        //System.out.println(Collection);
    }

    /**
     *
     */
    @Test
    public void test33() {
        boolean equals = Boolean.FALSE.equals(false);
        System.out.println(equals);
    }

    /**
     *
     */
    @Test
    public void test31() {
        List<String> list = Lists.newArrayList();
        list.add("");
        System.out.println();
    }

    /**
     *
     */
    @Test
    public void test26() {
        Long a = 1L;
        Integer b = 1;
        //a.intValue()
        //System.out.println(a == b);
        System.out.println(b.intValue() == a.intValue());
    }
}
